<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../../resources/common/page/sessionovertime.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>系统公告</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
    <script type="text/javascript" src="sys/notice/notice.js"></script>
    
    <link rel="stylesheet" href="resources/kindeditor-4.1.10/themes/default/default.css"/>
	<script charset="utf-8" src="resources/kindeditor-4.1.10/kindeditor-min.js"></script>
	<script charset="utf-8" src="resources/kindeditor-4.1.10/lang/zh_CN.js"></script>
	<script charset="utf-8" src="resources/kindeditor-4.1.10/plugins/code/prettify.js"></script>
	<script type="text/javascript" src="<%=basePath%>resources/common/viewHistory.js"></script>
    <script type="text/javascript">
	var editor1;
	KindEditor.ready(function(K) {
		var basePath = $('base').attr('href');
		editor1 = K.create('textarea[name="text"]', {
			cssPath : basePath+'resources/kindeditor-4.1.10/plugins/code/prettify.css',
			uploadJson : basePath+'resources/kindeditor-4.1.10/jsp/upload_json.jsp',
			fileManagerJson : basePath+'resources/kindeditor-4.1.10/jsp/file_manager_json.jsp',
			allowFileManager : true,
			afterBlur: function (){ 
				this.sync();
			}
		});
		prettyPrint();
	});
    </script>
  </head>
  <body class="easyui-layout">
  	<div id="toolbar" style="height:auto;">
  		<table  style="line-height:80px;">
		  	<tr align="left">
		  		<td width="100" align="right">版本号:</td>
		  		<td width="100" align="left"><input class="easyui-textbox" value="" id="noticeNumber" data-options="prompt:'模糊查询'"/></td>
		  	</tr>
		</table>
		<div style="margin-left:-2px;margin-right:-2px;" class="toolbuttonbg">
	        <a href="javaScript:openDialog_addPortal();" name="notice_add" style="float:left;" class="easyui-linkbutton" iconCls="icon-add" plain="true">添加</a>
	        <div class="datagrid-btn-separator"></div>
	        <a href="javaScript:openDialog_editPortal();" name="notice_editor" style="float:left;" class="easyui-linkbutton" iconCls="icon-edit" plain="true">编辑</a>
	       	<div class="datagrid-btn-separator"></div>
	        <a href="javaScript:delNotice();" name="notice_delete" style="float:left;" class="easyui-linkbutton" iconCls="icon-cancel" plain="true">删除</a>
	        <div class="datagrid-btn-separator"></div>
	        <a href="javaScript:viewHistory('sys_notice', 'noticeId');" name="notice_viewhistory" style="float:left;" class="easyui-linkbutton" iconCls="icon-viewsdetail" plain="true">操作日志</a>
	        <div class="datagrid-btn-separator"></div>
	        <a href="javaScript:reloadNotice();" name="notice_refresh" style="float:left;" class="easyui-linkbutton" iconCls="icon-reload" plain="true">刷新</a>
	        <div class="datagrid-btn-separator"></div>
	        <a href="javascript:queryNotice();" name="notice_query" class="easyui-linkbutton" iconCls="icon-search" plain="true">查询</a>
	    </div>
	</div>  
    <!-- 表格 -->
    <table id="dataGridTable" fit="true"  pagination="true" rownumbers="true" toolbar="#toolbar" singleSelect="true" fitColumns="false" striped="true" url="sys/findNotice.action"></table> 
	<!-- 编辑/新增 公告-->
	<div id="portalInfoDialog" iconCls="icon-save" style="width:900px;height:400px;">
		<div class="easyui-layout" fit="true">
		  	<div region="center" border="false" style="padding:10px ">
		  	  <form action="" id="portalInfoDialogForm">
		    	<table>
		    		<tr>
		          		<td>版本号：</td>		      
		          		<td><input type="text" class="easyui-textbox" id="noticeNumberInfo" maxlength="40" data-options="required:true,missingMessage:'该输入项为必输项'">
		          		 &emsp;&emsp;&emsp;发布时间：
		          		<input type="text" class="easyui-datetimebox" id="noticeTimeInfo" maxlength="40" size="25" required="true" data-options="editable:false"></td>
		        	</tr>
		    
		    		<tr>
		          		<td>更新内容：</td>
		          		<td>
		        		<textarea id="noticeContentInfo" name="text" style="width:780px;height:280px;visibility:hidden;"></textarea>
		        		<input type="hidden" id="noticeIdInfo">
		        		</td>
		        	</tr>
		  		</table>
		  	  </form>
		    </div>
	 	</div>
	 </div>
	 <%@ include file="../../resources/common/page/viewHistory.jsp"%>
  </body>
</html>
<%@ include file="../../resources/common/page/button.jsp"%>